<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>

<body>
<table border="1" cellpadding="2" cellspacing="1" style="border-collapse: collapse" bordercolor="#111111">
	<tr align="center">
		<td>序号</td>
		<td>来源地</td>
		<td>目的地</td>
		<td>通道</td>

		<td>通话时长</td>
		<td>费用</td>
		<td>时间</td>
	</tr>
	{[foreach name=outer key=key item=item from=$result]} 
	{[assign var="no" value="`$key+1`"]}
	<tr align="center">
		<td>{[$no]}</td>

		<td>{[$item.src_o.s]}</td>
		<td>{[$item.dst_o.s]}</td>
		<td>{[$item.dstchannel]}</td>

		<td>{[if $item.billsec lt 300]} {[$item.billsec_t]} {[else]} <font color='red'>{[$item.billsec_t]}</font> {[/if]}</td>
		<td>{[if $item.fee lt 1]} {[$item.fee|string_format:"%.2f"]} {[else]} <font color='red'>{[$item.fee|string_format:"%.2f"]}</font>
		{[/if]}</td>
		<td>{[$item.calldate|date_format:'%Y-%m-%d %H:%M:%S']}</td>
	</tr>
	{[/foreach]}
	<tr align="center">
		<td>&nbsp;</td>
		<td></td>
		<td></td>
		<td></td>

		<td>{[$total_t]}</td>
		<td>{[$fee]}</td>
		<td></td>
	</tr>
</table>

</body>
</html>